/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved. distributed with this file and
 * available online at
 */
package com.lap.auth.application.header.assembler;

import com.lap.auth.application.header.command.CreateHeaderCmd;
import com.lap.auth.domain.header.Header;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface HeaderAssembler {

  @Mapping(target = "createTime", ignore = true)
  @Mapping(target = "createdBy", ignore = true)
  @Mapping(target = "updateTime", ignore = true)
  @Mapping(target = "updatedBy", ignore = true)
  @Mapping(target = "event", ignore = true)
  Header toDomain(Integer userId, CreateHeaderCmd cmd);
}
